home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 001a / sendcomm.zip / EXAMPLE next >
Text File  |  1991-10-06  |  1KB  |  45 lines

  1. @ECHO OFF
  2. CLS
  3. REM     ┌────────────────────────────────────────────────────────────────┐
  4. REM     │ This batch file illustrates how you can create simple "doors"  │
  5. REM     │ for PCBoard 14.5 using SENDCOM and READCOM from Sparkware.     │
  6. REM     │ You can produce doors using these simple building blocks.      │
  7. REM     └────────────────────────────────────────────────────────────────┘
  8.  
  9. REM     ** PLEASE NOTE **
  10.  
  11. REM     READCOM may not set DOS environment variables if you execute the
  12. REM     batch file as a SHELL from PCBoard.  You may need to install the
  13. REM     door as a "non-shellable" door first.
  14.  
  15.  
  16. REM     First, we will clear the display and welcome the caller.  We'll
  17. REM     also check the DOS errorlevel to make sure the caller is still
  18. REM     there after executing SENDCOM.
  19.  
  20. SENDCOM @CLS@Welcome @FIRST@.  Today is @SYSDATE@ at @SYSTIME@.
  21. IF ERRORLEVEL=1 GOTO DONE
  22.  
  23.  
  24. REM     Next we'll ask for the user's last name.
  25.  
  26.  
  27. READCOM 'Please enter your last name @FIRST@: ' LASTNAME /L:25
  28. IF ERRORLEVEL=1 GOTO DONE
  29.  
  30.  
  31. REM     Now we'll transmit the user's FULL name.
  32.  
  33.  
  34. SENDCOM Welcome @FIRST@ %LASTNAME%
  35. IF ERRORLEVEL=1 GOTO DONE
  36.  
  37.  
  38. REM     Now call BOARD.BAT to return to PCBoard.  If you are SHELLing
  39. REM     from PCBoard you need to remove the "BOARD" command (but leave
  40. REM     the ":DONE" label in the file).
  41.  
  42.  
  43. :DONE
  44. BOARD
  45.